#ifndef __MONITOR_DEVICE_RES_H__
#define __MONITOR_DEVICE_RES_H__

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

#include "cJSON.h"

double get_cpu_usage();
void get_memory_info(unsigned long long *total, unsigned long long *free, unsigned long long *available);
double get_uptime();
void get_load_average(double *load1, double *load5, double *load15);
void format_uptime(double seconds, char *buffer, size_t size);
void get_device_res(char *cpu_usage_double_buf, 
                        char *cpu_usage_int_buf, 
                        char *mem_total_buf, 
                        char *mem_use_buf, 
                        char *mem_usage_buf, 
                        int *mem_usage_int, 
                        char *system_runtime_buf, 
                        char *load1_buf, 
                        double *load1_value, 
                        char *load5_buf, 
                        char *load15_buf);
#endif/* end of  __MONITOR_DEVICE_RES_H__ */
